package com.tedu.admin.dao;

import com.tedu.pojo.Topic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TopicDao {

    @Select("SELECT * FROM topic ORDER BY id LIMIT 6")
    public List<Topic> getAllTopic();

}
